﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace DevDemo
{
    public partial class OrderItemDev : DevExpress.XtraEditors.XtraUserControl
    {
        public OrderItemDev()
        {
            InitializeComponent();
        }

        public string TypeName = null;

        public List<string> ItemList = null;

        private void OrderItemDev_Load(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(TypeName))
            {
                this.labelControl1.Text = TypeName;
            }

            if (ItemList != null)
            {
                this.listBoxControl1.Items.Clear();

                foreach (var item in ItemList)
                {
                    this.listBoxControl1.Items.Add(item);
                }
            }
        }
    }
}
